home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12670 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: mayne.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is byte-alignment?
  5. Date: 1 Apr 1996 19:31:30 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4jq72iINNbpa@mayne.ugrad.cs.ubc.ca>
  8. References: <4jprfe$c6q@alcor.usc.edu>
  9. NNTP-Posting-Host: mayne.ugrad.cs.ubc.ca
  10.  
  11. In article <4jprfe$c6q@alcor.usc.edu>, Abu Wawda <wawda@alcor.usc.edu> wrote:
  12. >I often hear the phrase "byte-aligment" in this newsgroups, yet have
  13. >no clue what it is. Can someone please explain it to me? It comes up
  14. >often when people talk about structures. Thanks in advance,
  15.  
  16. This is an issue that arises when a memory module is not quite properly seated
  17. in the ZIF socket. The result is that when the CPU is reading a word, the most
  18. significant bit may be missing, the least significant bit is undefined, and all
  19. the ones in the middle are shifted by one. (Or vice versa).
  20.  
  21. This is really a historical misnomer: knowledgeable professionals refer to this
  22. as bit alignment.
  23.  
  24. In any case, if you suspect that you are having problems due to alignment, have
  25. your workstation aligned at an authorized service facility.
  26.  
  27. This is related to ``endian-ness'' problems, which result from inserting memory
  28. modules and peripherals backward. Every computer is normally little-endian,
  29. since Intel discovered way back in the early 70's that this is a better way to
  30. go. This means that the least significant byte is always to the left when you
  31. look at the motherboard from the correct angle.
  32. -- 
  33.  
  34.